

import threading
from socket import *
myHost = ''
myPort = 2020



s = socket(AF_INET, SOCK_STREAM)    # create a TCP socket
s.bind((myHost, myPort))            # bind it to the server port
s.listen(5)                         # allow 5 simultaneous


def affiche():
	chaine = connection.recv(1024)
	print chaine
	




while 1:
	connection, address = s.accept()
	affiche()
	#a = threading.Thread(None, affiche, None, ())
	#a.start()
